from typing import Tuple

import pygeotile.point
import pygeotile.tile


async def get_tile(
    lat_deg: float,
    lon_deg: float,
    zoom: int = 8
) -> Tuple[int, int]:

    point = pygeotile.point.Point.from_latitude_longitude(lat_deg, lon_deg)
    tile = pygeotile.tile.Tile.for_point(point=point, zoom=zoom)
    return tile.google
